#pragma once
#include <cstdlib>

class Player
{
private:

	Player * target;	//The player that they are poining at
	int cash;
	int shame;
	int health;
	int selectedAction;

public:
	//Public Variables
	int bangbangbang;
	int bang;
	int click;
	char * name;
	bool takePartInSplit;
	//Constructor
	Player();
	//Game loop functions
	void input();
	void update();
	int getHealth(){return health;}
	bool update(Player * a_player, int a_action);
	void draw(int position);
	void takeShame();
	void setTarget(Player* a_target);
	Player* getTarget() {return target;}
	int getSelectedAction() {return selectedAction;}
	void takeDamage() 
	{
		health--;
		takePartInSplit = false;
	}
	bool isInTheSplit(){return takePartInSplit;}
	void notInTheSplit(){takePartInSplit = false;}
	void pay(int a_amount){cash += a_amount;}
	void setSelectedAction(int a_action){selectedAction = a_action;}
	int getCash(){return cash;}
	int getShame(){return shame;}
};